package com.example.service;

import com.example.entity.Dynamic;
import com.example.entity.res.DynamicRes;

import java.util.List;

public interface DynamicService {
    List<DynamicRes> selectAll();

    List<DynamicRes> getDynamicHimself(Integer uid);

    List<DynamicRes> keywordsSearch(String keywords);

    void insert(Dynamic record);

    void deleteByPrimaryKey(Integer id);

    Dynamic selectByPrimaryKey(Integer id);

    void deleteByTitle(String title);

    List<DynamicRes> listAllDynamic();
}
